package com.wangp.springbootsource.service;

import com.wangp.springbootsource.ioc.entity.Animal;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

/**
 * <pre>
 * classname HelloService
 * description
 * </pre>
 *
 * @author wangp
 * @date 2020/9/18 19:34
 **/
@Component
public class HelloService {

    @Autowired
    @Qualifier("myCat")
//    @Qualifier("monkey")
//    @Qualifier("bird")
    private Animal animal;

    public void testHello() {
        animal.sayHello();
    }
}
